package com.game.customertextview;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        MuiltiChangeTextView textView=(MuiltiChangeTextView)findViewById(R.id.tv_view);
        textView.setTextColorFirst(getResources().getColor(R.color.colorAccent));
        textView.setFlag(false);
        textView.setTextFirstIndex(2,5);//不包含后面index
        textView.updateText();
    }
}
